package ken.app.comparator;

import java.util.Comparator;

import ken.app.bean.TreeAllBean;


public class TreeAllComparator implements Comparator{

	@Override
	public int compare(Object lhs, Object rhs) {

		TreeAllBean element2 = (TreeAllBean) lhs;
		TreeAllBean element1 = (TreeAllBean) rhs;
		
		int flag = element1.getTodayScore() - (element2.getTodayScore());
		
		return flag;
	}

}
